﻿@using Janus.Mes.WebClient;
@using Janus.BaseEntitys;
@using Janus.Mes.VO;
@model WorkUnitVO
@{
    Layout = null;
    ViewBag.ViewTitle = "工作单元";
}
<div class="pageContent">
    <form method="post" action="BaseData/WorkUnit/Create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    单元编码：
                </label>
                @Html.TextBoxFor(c => c.wUnitCode, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.wUnitCode)
            </p>
            <p>
                <label>
                    工作中心代码：
                </label>
                @Html.TextBoxFor(c => c.WorkCCode, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.WorkCCode)
            </p>
            <p>
                <label>
                    单元名称：
                </label>
                @Html.TextBoxFor(c => c.wUnitName, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.wUnitName)
            </p>
            <p>
                <label>
                    单元类别：
                </label>
                @Html.TextBoxFor(c => c.wUnitCat, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.wUnitCat)
            </p>
            <p>
                <label>
                    设备编码：
                </label>
                @Html.TextBoxFor(c => c.EquCode, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.EquCode)
            </p>
            <p>
                <label>
                    机器负载数量：
                </label>
                @Html.TextBoxFor(c => c.MacLoadQty, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.MacLoadQty)
            </p>
            <p>
                <label>
                    机器负载小时：
                </label>
                @Html.TextBoxFor(c => c.MacLoadHour, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.MacLoadHour)
            </p>
            <p>
                <label>
                    人力负载数量：
                </label>
                @Html.TextBoxFor(c => c.ManLoadQty, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.ManLoadQty)
            </p>
            <p>
                <label>
                    人力负载小时：
                </label>
                @Html.TextBoxFor(c => c.ManLoadHour, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.ManLoadHour)
            </p>
            <p>
                <label>
                    机器费用：
                </label>
                @Html.TextBoxFor(c => c.MacCost, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.MacCost)
            </p>
            <p>
                <label>
                    人力费用：
                </label>
                @Html.TextBoxFor(c => c.ManCost, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.ManCost)
            </p>
            <p>
                <label>
                    天数/周：
                </label>
                @Html.TextBoxFor(c => c.DayWeek, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.DayWeek)
            </p>
            <p>
                <label>
                    小时数/周(机器)：
                </label>
                @Html.TextBoxFor(c => c.HourWeekMac, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.HourWeekMac)
            </p>
            <p>
                <label>
                    小时数/周(人)：
                </label>
                @Html.TextBoxFor(c => c.HourWeekMan, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.HourWeekMan)
            </p>
            <p>
                <label>
                    备注：
                </label>
                @Html.TextBoxFor(c => c.Remark, new { @class = "" })
                @Html.ValidationMessageFor(c => c.Remark)
            </p>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>